export function copyProperties(source: any, target: any, ...ignoreProperties: string[]) {
    for (const property of Object.keys(source)) {
        if (ignoreProperties.includes(property)) {
            continue
        }
        target[property] = source[property]
    }
}

export function cleanProperties(obj: any, ...ignoreProperties: string[]) {
    for (const key in obj) {
        if (ignoreProperties.includes(key)) {
            continue
        }
        obj[key] = undefined;
    }
}